package com.platform.qujia.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class DeputyCardRule implements Serializable {

    @ApiModelProperty(value = "规则id")
    private Long ruleId;

    @ApiModelProperty(value = "主卡id")
    private Long mainId;

    @ApiModelProperty(value = "添加副卡规则类型：1:共享，2:分配")
    private String cardRuleType;

    @ApiModelProperty(value = "允许扫码次数")
    private Long scanCodeNum;

    @ApiModelProperty(value = "已使用次数")
    private Long usedNum;

    @ApiModelProperty(value = "额度生效类型：1:单次，2:永久, 3:每月")
    private String effectiveType;

    @ApiModelProperty(value = "副卡分配金额")
    private BigDecimal shareAmt;

    @ApiModelProperty(value = "电子卡主卡余额")
    private BigDecimal mainAmt;

    @ApiModelProperty(value = "删除标识 0：未删除,1：删除")
    private String isDeleted;

    @ApiModelProperty(value = "添加副卡规则时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public Long getRuleId() {
        return ruleId;
    }

    public void setRuleId(Long ruleId) {
        this.ruleId = ruleId;
    }

    public Long getMainId() {
        return mainId;
    }

    public void setMainId(Long mainId) {
        this.mainId = mainId;
    }

    public String getCardRuleType() {
        return cardRuleType;
    }

    public void setCardRuleType(String cardRuleType) {
        this.cardRuleType = cardRuleType == null ? null : cardRuleType.trim();
    }

    public Long getScanCodeNum() {
        return scanCodeNum;
    }

    public void setScanCodeNum(Long scanCodeNum) {
        this.scanCodeNum = scanCodeNum;
    }

    public Long getUsedNum() {
        return usedNum;
    }

    public void setUsedNum(Long usedNum) {
        this.usedNum = usedNum;
    }

    public String getEffectiveType() {
        return effectiveType;
    }

    public void setEffectiveType(String effectiveType) {
        this.effectiveType = effectiveType == null ? null : effectiveType.trim();
    }

    public BigDecimal getShareAmt() {
        return shareAmt;
    }

    public void setShareAmt(BigDecimal shareAmt) {
        this.shareAmt = shareAmt;
    }

    public BigDecimal getMainAmt() {
        return mainAmt;
    }

    public void setMainAmt(BigDecimal mainAmt) {
        this.mainAmt = mainAmt;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}